package com.tn.dao;

import com.threetags.link.gae.db.Sequence;

public class SequenceGenerator {
	public static String getNextSequenceValue(String seqName) throws Exception{
		try {
			return String.valueOf(Sequence.next(seqName,2));
		} catch (Exception e) {
			String message = "Could not generate next value for sequence - " + seqName;
			throw new Exception(message, e);
		}
	}
}
